<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .div1 {
            width: 100px;
            height: 100px;
            background-color: red;
            animation: animation1 1s 2 forwards;
            position: relative;
            top: 0;
            left: 0;
        }
        @keyframes animation1 {
            0% {
                background-color: red;
                position: relative;
                top: 0;
                left: 0;
            }
            20% {
                top: 600px;
            }
            60% {
                top: -30px;
                left: -60px;
            }
            100% {
                background-color: blue;
                top: 100px;
                left: 100px;
            }
        }
    </style>
</head>
<body>
    <p>动画和过渡效果的区别：动画不需要触发，页面加载完毕后制动执行。</p>
    <div class="div1"></div>
</body>
</html>